package com.shop.service;

import com.shop.pojo.Goods;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface GoodsService {
    List<Goods> selectAll();

    Map<String,Object> queryGoodsByCondition(Map<String,Object> params);

    Map<String,Object> getGoodsDetailByGoodsId(HttpServletRequest request,HttpServletResponse response)throws Exception;

    String addGood(HttpServletRequest request, HttpServletResponse response) throws Exception;

    String addGoodAttrVals(HttpServletRequest request, HttpServletResponse response) throws Exception;

    String editGood(HttpServletRequest request, HttpServletResponse response) throws Exception;

    String deleteGood(HttpServletRequest request, HttpServletResponse response) throws Exception;

    List<Goods> getGoodsSaleByCondition(HttpServletRequest request, HttpServletResponse response) throws Exception;
}
